<?php 

class Admin_model extends ci_model{
	
	
	


function validate(){
		
                            $this->db->where('username', $this->input->post('username') );		
							$this->db->where('password', MD5($this->input->post('password')));	
		                    $query=$this->db->get('ADMIN');
		                  	if ($query->num_rows()==1)
						    {return true;}
							else return false;
		
		
		
		
							}
	
	
/*function create_member()
							{
							$data = array(
											'first_name' => $this->input->post('first_name'),
											'last_name' => $this->input->post('last_name'),
											'email' => $this->input->post('email_address'),			
											'username' => $this->input->post('username'),
											'password' => md5($this->input->post('password'))						
										);	
							
							 $insert =$this->db->insert('membership',$data);
							 return $insert;
							
							
							
							}*/

					   
					   
					   
					   
					   
					   
					   
					   }






















?>